#include "stc8h.h"
#include "fun.h"
#include "UC1701X.h"
#include "STDIO.H"
#include "eeprom.h"
#include "intrins.h"
#include "gps2u.h"


void main()
{
    P0M0 = 0x00;
    P0M1 = 0x00;
    P1M0 = 0x00;
    P1M1 = 0x00;
    P2M0 = 0x00;
    P2M1 = 0x00;
    P3M0 = 0x00;
    P3M1 = 0x00;
    P4M0 = 0x00;
    P4M1 = 0x00;
    P5M0 = 0x00;
    P5M1 = 0x00;
    EA = 1;				//开放CPU中断
    Uart1_Init();
    UartSendStr("start");
    LCD_init();
    full_display(0x00);
    UartSendStr("lcd");
    Uart2_Init();
    while (1)
    {
        runcmd();
        sh();
    }
    
}